package com.dyh.quickdemo.depRm3;

import com.alibaba.fastjson.JSON;
import com.google.common.base.Function;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/*
@Author=Joey Wheeler
@Date=2021/3/26 16:11
*/
@Service
public class OneService {

    @Resource(name = "sdkClientExe")
    Function<SdkRequest,? extends SdkResponse> sdkClientExe;

    public void fun(){
        HelloResponse helloResponse = (HelloResponse) sdkClientExe.apply(new HelloRequest());
        System.out.println(JSON.toJSONString(helloResponse));
    }

}
